package org.example.strategy.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.example.strategy.service.PayStrategy;
import org.springframework.stereotype.Service;

/**
 * 微信支付
 */
@Slf4j
@Service("WxPay")// beanName作为策略key
public class WxPayStrategyImpl implements PayStrategy {
    @Override
    public String pay(String param) {
        String resp = "WxPay 执行支付," + param;
        log.info(resp);
        return resp;
    }
}
